<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    /* 输入（参数）->函数-> 输出（返回值） */
    const allow = confirm('确定吗？');
    console.log(allow);
  </script>
</body>

</html>